package com.example.design.shejimoshi.action.visitor.practice2.element;


import com.example.design.shejimoshi.action.visitor.practice2.visit.Visitor;
import lombok.Getter;

/**
 * @Description 卡状态，一个子类对应一个元素
 * @Author liuzhihui
 * @Date 2024/6/26
 */
public abstract class CardStatusResource {

    /**
     * 获取运营商
     * @param operator
     * @return
     */
    public abstract String getOperator(String operator);
    public abstract void accept(Visitor visitor);


    @Getter
    public enum OperatorEnum {
        TianHeCUCC("1", "天河联通"),
        ZhuHaiCUCC("2", "珠海联通");

        String key;
        String name;

        OperatorEnum(String key, String name) {
            this.key = key;
            this.name = name;
        }
    }
}
